/* "Preferences for Traditional and Formal Sector Justice Institutions
 to Resolve Land Disputes in Rural Mali" */
/* Replication File */

/* Description of Variables Contained in the Replication Dataset

region - region of the country (Gao, Kayes, Koulikoro, or Taoudenit)
cercle - cercle within region
commune - commune within cercle
village - village within commune
date - date of interview
female - 0/1
age 
edu - (1) No Schooling; (2) Informal Schooling; (3) Some Primary School; 
 (4) Completed Primary School; (5) Some Secondary School; (6) Completed Secondary School;
 (7) Professional BAC; (8) Professional Training Beyond BAC; (9) Some University;
 (10) Completed University; (11) Post-Graduate
S9Q6 - "What language do you speak at home?" - (1) Bambara; (2) Sonhrai; (3) Tamsheq;
 (4) Arabe; (5) Peulh; (6) Dogon; (7) Bozon; (8) Malinke; (9) Soninke/Sarakole/Marka; 
 (10) Senoufou; (11) Mianka; (12) Bobo; (13) Khassonke; (14) Samogo; (15) Mossi;
 (40) French; (97) Other
non_bambara - 0/1 if respondent speaks something other than Bambara at home
S9Q7 - "What is your religion, if any?" - (1) None; (2) Animist; (3) Muslim; 
 (4) Muslim, Sunnite; (5) Muslim, Wahabite; (6) Muslim, Tidjanta; 
 (7) Muslim, Hamalia; (8) Muslim, Qadiryya; (9) Muslim, An çar; 
 (10) Muslim, Shia; (11) Christian; (12) Muslim, Soufi; (97) Other; 
 (98) Don't Know; (99) Refused
non_muslim - 0/1 if respondent said they had no religion or identified with a 
 religion other than Islam
S0Q8A ... S0Q8E - "Over the past 12 months, how often, if ever, have you or 
 anyone in your family had to get by without any of the following: (a) Not enough
 food to eat; (b) Lack of drinking water for domestic needs; (c) lack of medicine
 and medical care; (d) lack of fuel to cook your food; (e) lack of money"? - 
 (0) Never; (1) 1-2 Times; (2) Several Times; (3) Many Times; (4) Always;
 (98) Don't Know; (99) Refused
lpi - Lived Poverty Index - mean value of reversed coding of S0Q8A ... S0Q8E
poor - 0/1 if respondent scored 2.0 or above on the lpi
S1Q1, S1Q3, S1Q5, S1Q7 - "Have you or someone from your household had a dispute 
 over {inheritance, land, the theft of private property, any other type of dispute} 
 in the last five years or not?" - (1) Yes; (2) No; (98) Don't Know; (99) Refused
dispute_inherit dispute_land dispute_theft dispute_other - recoding of S1Q1, S1Q3,
 S1Q5, and S1Q7 - (0) No; (1) Yes
dispute_total - count of yes answers to dispute questions
S1Q2_1 ... S1Q2_4, S1Q4_1 ... S1Q4_4, S1Q6_1 ... S1Q6_4; S1Q8_1 ... S1Q8_4 - 
 "With regard to this dispute over {inheritance, land, theft, or some other issue}, 
 who did you take this dispute to? If you had more than one dispute over {}, please 
 think about the most recent dispute you had.  Did you take this to the 
 police/gendarmerie? Did you seek to address it through traditional authorities, 
 such as a village chief or religious authority?  Did you go through the Malian 
 court system?  Or did you contact some other person or group to seek resolution 
 for this dispute?" - (1) The police/gendarmarie; (2) Traditional leader; 
 (3) Malian court system; (4) Contacted someone els; (97) Did nothing; 
 (98) Don't know; (99) Refuse
court_any - 0/1 if a respondent who had had one or more disputes mentioned 
 having used the Malian court system in response to any of these disputes
court_any2 - 0/1 if a respondent mentioned having used  the Malian court system 
 in response to a dispute; 0 cases include individuals who reported having no 
 disputes (vs. court_any)
trad_any - 0/1 if a respondent who had had one or more disputes mentioned 
 having used traditioanl authorities in response to any of these disoutes
S2Q1_1 - S2Q1_12 - "Imagine that you faced a legal issue, such as a dispute over 
 land or over an inheritance.  Who would you contact to help you try to resolve 
 this legal problem?  Please tell me anyone who comes to mind.  [Do not read
 answer options.]" - (1) Member of my family / head of my household; (2) Friend; 
 (3) Religious Leader; (4) Griot; (5) Village chief; (6) Government official; 
 (7) Prefect or deputy prefect; (8) Police; (9) Paralegal; (10) Lawyer; 
 (11) Tribunal; (12) Town hall; (96) Would not contact anyone; (97) Other; 
 (98) Don't know; (99) Refused
prosp_tribunal - 0/1 if respondent answered "tribunal" to question above
S2Q4A / S2Q4B - "When the {village chief, tribunal} makes a decision, how
 confident are you that this decision will be fair?" - (1) Very confident;
 (2) Somewhat confident; (3) Not very confident; (4) Not at all confident;
 (98) Don't know; (99) Refused
S2Q5A / S2Q5B - "How quickly do you think the {village chief, tribunal} will
 make a decision?" - (1) Very quickly; (2) Somewhat quickly; (3) Somewhat
 slowly; (4) Very slowly; (98) Don't know; (99) Refused
S2Q6A / S2Q6B - "In order to settle their dispute, how likely or unlikely do 
 you think it is that Abou and Moussa will have to make payments to {the village
 chief, the tribunal}? - (1) Very likely; (2) Somewhat likely; (3) Somewhat unlikely;
 (4) Very unlikely; (98) Don't know; (99) Refused
S2Q7A / S2Q7B - "In making their decision, do you think that the {village chief, 
 tribunal} will decide the case based only on the written laws of Mali, will they 
 rely mostly on written laws but will take local traditions into consideration, 
 will they rely mostly on local traditions but take written laws of Mali into 
 consideration, or will they rely only on local traditions to make their decisions?"
 (1) Only use Mali's written laws; (2) Mostly use Mali's written laws; 
 (3) Mostly use local traditions; (4) Only use local traditions; (98) Don't know;
 (99) Refused
fairdecision speeddecision paydecision lawdecision - recodings of S2Q4A/B ...
 S2Q7A/B where scale is reversed and DK/Refused is coded as missing 
tpi - 0/1 indicator for hearing about the tribunal in the vignette
base - 0/1 indicator for survey collected at baseline
treat_campaign - 0/1 indicator for being assigned to the field expeimental
 information campaign treatment  */ 
 
clear
use "MaliSurveyExperiment.dta"

************************************
* APPENDIX TABLE 1: BALANCE CHECKS *
************************************

balancetable tpi female age edu non_bambara non_muslim lpi dispute_total court_any prosp_tribunal ///
 using balancestats.xlsx, replace observationscolumn ctitles("Control" "Treatment" "Difference" "N")

/* Hansen-Bowers (2008) Omnibus Test
 * xbalance is an .ado file that is going to call R using rsource, so need to have
  * all of those (R and the two .ado files) installed to run this test

gen constant = 1
global Rterm_path `"INSERT PATH TO R.exe HERE"'
xbalance tpi constant female age edu non_bambara non_muslim lpi dispute_total 
 court_any prosp_tribunal
 
*/ 
 
***********
* TABLE 1 *
*********** 
ttest fairdecision, by(tpi) 
ttest speeddecision, by(tpi)
ttest paydecision, by(tpi)
ttest lawdecision, by(tpi)

********************
* APPENDIX TABLE 2 *
********************

* Looking Only at Baseline Data 
ttest fairdecision if base==1, by(tpi) 
ttest speeddecision if base==1, by(tpi)
ttest paydecision if base==1, by(tpi)
ttest lawdecision if base==1, by(tpi)

reg fairdecision tpi##base, robust
reg speeddecision tpi##base, robust
reg paydecision tpi##base, robust
reg lawdecision tpi##base, robust

reg fairdecision tpi##treat_campaign if base==0, robust
reg speeddecision tpi##treat_campaign if base==0, robust
reg paydecision tpi##treat_campaign if base==0, robust
reg lawdecision tpi##treat_campaign if base==0, robust

***********
* TABLE 2 *
*********** 

ttest fairdecision if court_any==1, by(tpi) 
ttest speeddecision if court_any==1, by(tpi)
ttest paydecision if court_any==1, by(tpi)
ttest lawdecision if court_any==1, by(tpi)

ttest fairdecision if court_any!=1, by(tpi) 
ttest speeddecision if court_any!=1, by(tpi)
ttest paydecision if court_any!=1, by(tpi)
ttest lawdecision if court_any!=1, by(tpi)

reg fairdecision tpi##court_any, robust
reg speeddecision tpi##court_any, robust
reg paydecision tpi##court_any, robust
reg lawdecision tpi##court_any, robust

***********
* TABLE 3 *
*********** 

ttest fairdecision if prosp_tribunal==1, by(tpi) 
ttest speeddecision if prosp_tribunal==1, by(tpi)
ttest paydecision if prosp_tribunal==1, by(tpi)
ttest lawdecision if prosp_tribunal==1, by(tpi)

ttest fairdecision if prosp_tribunal==0 & court_any!=1, by(tpi) 
ttest speeddecision if prosp_tribunal==0 & court_any!=1, by(tpi)
ttest paydecision if prosp_tribunal==0 & court_any!=1, by(tpi)
ttest lawdecision if prosp_tribunal==0 & court_any!=1, by(tpi)

reg fairdecision tpi##prosp_tribunal if court_any!=1, robust
reg speeddecision tpi##prosp_tribunal if court_any!=1, robust
reg paydecision tpi##prosp_tribunal if court_any!=1, robust
reg lawdecision tpi##prosp_tribunal if court_any!=1, robust

***********
* TABLE 4 *
*********** 

ttest fairdecision if female==1, by(tpi) 
ttest speeddecision if female==1, by(tpi)
ttest paydecision if female==1, by(tpi)
ttest lawdecision if female==1, by(tpi)

ttest fairdecision if female==0, by(tpi) 
ttest speeddecision if female==0, by(tpi)
ttest paydecision if female==0, by(tpi)
ttest lawdecision if female==0, by(tpi)

reg fairdecision tpi##female, robust
reg speeddecision tpi##female, robust
reg paydecision tpi##female, robust
reg lawdecision tpi##female, robust

***********
* TABLE 5 *
*********** 
 
ttest fairdecision if poor==1, by(tpi) 
ttest speeddecision if poor==1, by(tpi)
ttest paydecision if poor==1, by(tpi)
ttest lawdecision if poor==1, by(tpi)

ttest fairdecision if poor==0, by(tpi) 
ttest speeddecision if poor==0, by(tpi)
ttest paydecision if poor==0, by(tpi)
ttest lawdecision if poor==0, by(tpi)

reg fairdecision tpi##poor, robust
reg speeddecision tpi##poor, robust
reg paydecision tpi##poor, robust
reg lawdecision tpi##poor, robust

***********************
* IN-TEXT COMPARISONS *
***********************

* Someone with a dispute who has used a tribunal is less likely to say that 
 * one needs to make a payment at a tribunal
ttest paydecision, by(court_any)

* Prospective users of tribunals think that tribunals are more likely to 
 * be fair and reach a quick decision than other respondents
ttest fairdecision if tpi==1, by(prosp_tribunal)
ttest speeddecision if tpi==1, by(prosp_tribunal)


/* End of File */
